# encoding: utf-8
# @Author: zsl
# @Desc : 模拟时钟
# @Date  : 2025/07/09 16:20
import tkinter as tk
import time

def update_clock():
    current_time = time.strftime('%H:%M:%S')
    label.config(text=current_time)
    root.after(1000, update_clock)

root = tk.Tk()
root.title("模拟时钟")

label = tk.Label(root, font=('Helvetica', 48))
label.pack(pady=20)
update_clock()
root.mainloop()

